repo: Improve ostree_repo_load_file() to use `*at()` for xattrs
authorColin Walters <walters@verbum.org>
Tue, 6 Jan 2015 21:47:03 +0000 (16:47 -0500)
committerColin Walters <walters@verbum.org>
Tue, 6 Jan 2015 21:47:03 +0000 (16:47 -0500)
commit86764dbf007fca1e42aacb830e3c1911b198be6e
tree15e8ea1e6e28021bc19d3f6da47e44db97bfcfed
parent6dab41ba77cf2358e88dc447b6b0b7a9a8315a5c
repo: Improve ostree_repo_load_file() to use `*at()` for xattrs

We were already using openat() for the contents, but not the xattrs.
Now that libgsystem 2014.3 has gs_fd_get_all_xattrs(), make use of it.

Clean things up a bit so we only open the fd once.
src/libostree/ostree-repo.c